<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WLog: ILogProcess.h源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- 制作者 Doxygen 1.5.8 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>名字空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<h1>ILogProcess.h</h1><a href="ILogProcess_8h.html">浏览该文件的文档。</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _WLOG_ILOGPROCESS_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _WLOG_ILOGPROCESS_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include "<a class="code" href="WLDefine_8h.html">WLDefine.h</a>"</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include "<a class="code" href="ILevel_8h.html">ILevel.h</a>"</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">namespace </span>WLog
<a name="l00008"></a>00008 {
<a name="l00009"></a>00009     <span class="keyword">class </span>IOuter;
<a name="l00010"></a>00010     <span class="keyword">class </span>Record;
<a name="l00015"></a><a class="code" href="classWLog_1_1ILogProcess.html">00015</a>     <span class="keyword">class </span><a class="code" href="classWLog_1_1ILogProcess.html" title="Interface for process the logs.">ILogProcess</a> 
<a name="l00016"></a>00016     {
<a name="l00017"></a>00017     <span class="keyword">public</span>:
<a name="l00024"></a>00024         <a class="code" href="classWLog_1_1ILogProcess.html#0dca4c62ee5c6ccda16212992b26296f" title="以一个输出对象IOuter来初始化类.">ILogProcess</a>(<a class="code" href="classWLog_1_1IOuter.html" title="Interface for output Record with define Log Level.">IOuter</a> *pOuter = 0, <span class="keywordtype">int</span> iOutLevel = <a class="code" href="WLDefine_8h.html#ceacf3da21ef098182fce735e4cd8dfa">W_LEVEL_FLOOR</a>);
<a name="l00025"></a>00025         
<a name="l00026"></a>00026         <span class="keyword">virtual</span> <a class="code" href="classWLog_1_1ILogProcess.html#a7593f0f3235ea4e5e9ce22fbef650a7">~ILogProcess</a>();
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="comment">//  public:</span>
<a name="l00035"></a>00035 <span class="comment"></span>        <span class="keywordtype">bool</span> <a class="code" href="classWLog_1_1ILogProcess.html#acc84762d50a7a0ec71453b1534094a4" title="向类里面添加不同级别的 ILevel.">addLevel</a>(<a class="code" href="classWLog_1_1ILevel.html" title="Define Interface for Log Level.">ILevel</a> *pLevel);
<a name="l00036"></a>00036         
<a name="l00044"></a>00044         <span class="keywordtype">void</span> <a class="code" href="classWLog_1_1ILogProcess.html#035c1a508ac1492b9344a510e317f668" title="设置输出级别.">setOutLevel</a>(<span class="keywordtype">int</span> iOutLevel);
<a name="l00045"></a>00045 
<a name="l00052"></a>00052         <span class="keywordtype">int</span> <a class="code" href="classWLog_1_1ILogProcess.html#fbb6db887defa09683f91b7059f6f703" title="获取类的输出级别.">getOutLevel</a>();
<a name="l00053"></a>00053         
<a name="l00061"></a>00061         <a class="code" href="classWLog_1_1IOuter.html" title="Interface for output Record with define Log Level.">IOuter</a>* <a class="code" href="classWLog_1_1ILogProcess.html#ce3c7d8721cd6e40d2e4ae22504f5df5" title="设置类的输出对象IOuter.">setOuter</a>(<a class="code" href="classWLog_1_1IOuter.html" title="Interface for output Record with define Log Level.">IOuter</a> *pOuter);
<a name="l00062"></a>00062         
<a name="l00069"></a>00069         <a class="code" href="classWLog_1_1IOuter.html" title="Interface for output Record with define Log Level.">IOuter</a>* <a class="code" href="classWLog_1_1ILogProcess.html#51eb815cb699c63c370bee4788a285b0" title="获取类的输出对象IOuter.">getOuter</a>();
<a name="l00070"></a>00070     
<a name="l00077"></a>00077         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classWLog_1_1ILogProcess.html#81da7a7de8f4eece0f19a1f3fe3becbf" title="添加一条记录">pushRecord</a>(<a class="code" href="classWLog_1_1Record.html" title="记录类，记录一条信息的所有字段。">Record</a> record);
<a name="l00078"></a>00078     <span class="keyword">private</span>:
<a name="l00079"></a>00079         <span class="keywordtype">void</span> init();
<a name="l00080"></a>00080 
<a name="l00081"></a>00081     <span class="keyword">protected</span>:
<a name="l00082"></a><a class="code" href="classWLog_1_1ILogProcess.html#04d7cf576224bbe3179a12d001e35bbb">00082</a>         <a class="code" href="classWLog_1_1ILevel.html" title="Define Interface for Log Level.">ILevel</a>* <a class="code" href="classWLog_1_1ILogProcess.html#04d7cf576224bbe3179a12d001e35bbb">m_pLevels</a>[<a class="code" href="WLDefine_8h.html#f2124a4fad13a6641c8dec64fdee276a">W_LEVEL_CEIL</a>];
<a name="l00083"></a>00083 
<a name="l00084"></a>00084     <span class="keyword">private</span>:
<a name="l00085"></a>00085         <a class="code" href="classWLog_1_1IOuter.html" title="Interface for output Record with define Log Level.">IOuter</a>* m_pOuter; 
<a name="l00086"></a>00086         <span class="keywordtype">int</span> m_iOutLevel;        
<a name="l00087"></a>00087     };
<a name="l00088"></a>00088 }
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 <span class="preprocessor">#endif //_WLOG_ILOGPROCESS_H_</span>
</pre></div></div>
<hr>
<address style="align: right;">
  Generated on Mon Apr 6 21:08:12 2009 for WLog by 韦体东<img src="logo.png" align="middle"/></address>
</body>
</html>
